<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="row">
	<div class="col-xs-3" style="margin-left:15px;">
		<div class="input-group">
			<span class="input-group-btn">
				<button class="btn btn-primary btn-lg" type="button">表名</button>
			</span> <input type="text" id="tableName" class="form-control well" value=""
				readOnly="readOnly">
		</div>
	</div>
	<div class="col-xs-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

	<div class="col-xs-3 ">
		<div class="input-group">
			<span class="input-group-btn">
				<button class="btn btn-primary btn-lg" type="button">类名</button>
			</span> <input type="text" id="className" class="form-control well" value=""
				readOnly="readOnly">
		</div>
	</div>
	<div class="col-xs-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
	<div class="col-xs-3">
	<select id="showQuery" class="custom-select">
     </select>
	</div>
     <div class="col-xs-1"><p style="color:red;font-size:15px;">*(必选)</p></div>
     
     <div class="col-xs-3" style="margin-left:15px;">
		<div class="input-group">
			<span class="input-group-btn">
				<button class="btn btn-primary btn-lg" type="button">模块名称</button>
			</span> <input type="text" id="menu_name" class="form-control" value="">
		</div>
	</div>
	<div class="col-xs-1"><p style="color:red;font-size:15px;">*(必填)</p></div>
	<div class="col-xs-3">
	<select id="menu_parent" class="custom-select">
	<option value="">所属菜单</option>
	<option value="0">--顶级</option>
	<c:forEach items="${sys_menus}" var="sys_menu">
		<option value="${sys_menu.menu_id}">----${sys_menu.menu_name}</option>
	
	</c:forEach>
     </select>
	</div>
     <div class="col-xs-1"><p style="color:red;font-size:15px;">*(必选)</p></div>
</div>

<form id="submitForm">
<!-- 表格 -->
<table class="table table-condensed table-bordered table-hover"
	style="margin-top: 5px;">

	<thead>
		<th>列名</th>
		<th>中文名<font style="color:red;font-size:15px;">*(必填)</font></th>
		<th>类型<font style="color:red;font-size:15px;">*(必选)</font></th>
		<th>默认值</th>
		<th>关联的表</th>
		<th>待选值/关联的表字段</th>
		<th>关联表解释词</th>
	</thead>
	<tbody>
	</tbody>

</table>
</form>
<button id="submit" class="btn btn-lg btn-primary" >生成</button>




<!-- 模态框详情 -->
<div class="modal fade" id="addModal" data-backdrop="static"
	tabindex="-1">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">请选择要生成的表</h4>
				<button data-dismiss="modal" class="close" type="button">
					<span aria-hidden="true">×</span><span class="sr-only">Close</span>
				</button>
			</div>
			<div class="modal-body">
				<div class="list-group">
					<c:forEach items="${tables}" var="table" varStatus="st">
						<c:if test="${st.count%2==0}">
							<a href="#" class="list-group-item list-group-item-success"
								onclick="loadTable('${table}')">${table}</a>
						</c:if>
						<c:if test="${st.count%2!=0}">
							<a href="#" class="list-group-item list-group-item-info"
								onclick="loadTable('${table}')">${table}</a>
						</c:if>
					</c:forEach>
				</div>

			</div>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</div>

<script src="static/js/durose/durose_generator.js"></script>